package com.etoak.car.service;


import com.etoak.car.bean.Users;
import com.etoak.car.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    UserMapper userMapper;

    public Users login(String username, String password) {
        return userMapper.login(username,password);
    }

    public int register(Users users) {
        return userMapper.register(users);
    }

    public int upUser(Users users) {
        return userMapper.upUser(users);
    }

    public Users queryUserById(int id) {
        return userMapper.queryUserById(id);
    }


    public int upVip(int id) {
        return userMapper.upVip(id);
    }

    public int upMoney(Integer id) {
        return userMapper.upMoney(id);
    }

//    public int upJifen(int id) {
//        return userMapper.upJifen(id);
//    }

}
